import { Character } from './models/Character';
import { Team } from './models/Team';
import { Game } from './models/Game';
import { skills } from './models/skills';

// 创建角色
const weiCharacters = [
    new Character('曹操', 11100, 120, 10, 150, 120, []),
    new Character('司马懿', 11180, 110, 5, 180, 130, []),
    new Character('夏侯惇', 11120, 125, 15, 130, 110, []),
    new Character('张辽', 11190, 122, 12, 140, 115, []),
    new Character('许褚', 11130, 128, 18, 120, 15, []),
    new Character('典韦', 11110, 130, 20, 125, 110, [])
];

const shuCharacters = [
    new Character('刘备', 11100, 118, 12, 160, 125, []),
    new Character('诸葛亮', 11170, 15, 8, 290, 235, []),
    new Character('关羽', 11120, 130, 20, 135, 115, []),
    new Character('张飞', 11110, 128, 18, 125, 110, []),
    new Character('赵云', 11190, 125, 15, 140, 120, []),
    new Character('黄忠', 11100, 122, 12, 135, 115, [])
];

// 创建队伍
const teamWei = new Team('魏国', weiCharacters);
const teamShu = new Team('蜀国', shuCharacters);

// 创建游戏并开始
const game = new Game(teamWei, teamShu);
const battleLog = game.start();

// 打印战斗日志
battleLog.forEach(log => console.log(log));